<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="./resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
        <title>Facelets Template</title>
    </h:head>

    <h:body>

        <div id="top" class="top">
            <ui:insert name="top">Top</ui:insert>
        </div>

        <div id="content" class="center_content">
            <h:form id="form">
                <h:messages />
                <h:panelGrid columns="2">
                    <f:facet name="header">
                        <h:outputText value="Login"/>
                    </f:facet>
                    <h:outputLabel for="nome" value="Nome: " />
                    <h:inputText id="nome" value="#{LoginController.usuario.login}" required="true" />
                    <h:outputLabel for="senha" value="Senha: " />
                    <h:inputSecret id="senha" value="#{LoginController.usuario.senha}" required="true" />
                    <f:facet name="footer">                        
                        <h:commandButton action="#{LoginController.login()}" value="Logar" />
                    </f:facet>
                </h:panelGrid>
            </h:form>
        </div>

    </h:body>

</html>
